import BaseCURDV2Api from '@/framework/infra/base/BaseCURDV2Api'

class ProductLogApi extends BaseCURDV2Api {
  constructor() {
    super('pdt/product-log')
  }

  removeByCondition(condition) {
    return this.post('remove-by-cond', condition)
  }

  list(params) {
    // const getParams = { ...params }
    // Object.keys(getParams).forEach(key => {
    //   if (Array.isArray(getParams[key])) {
    //     getParams[key] = getParams[key].join(',')
    //   }
    // })
    return this.post('list-page', params)
  }
}

export const productLogApi = new ProductLogApi()
